/*
 * Gatekeeper - DoS protection system.
 * Copyright (C) 2016 Digirati LTDA.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _GATEKEEPER_CPS_ELF_H_
#define _GATEKEEPER_CPS_ELF_H_

/*
 * Retrieve the value of the @attr in the modinfo section of
 * the @file, and store it in buffer @val of length @val_len.
 */
int get_modinfo_string(const void *file, unsigned long len, const char *attr,
	char *val, size_t val_len);

#endif /* _GATEKEEPER_CPS_ELF_H_ */
